package com.example.chat.controller;

import com.example.common.common.config.response.Response;
import lombok.RequiredArgsConstructor;
import com.example.chat.model.FileChatModel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.example.chat.service.FileChatService;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2025/8/5 23:04
 **/
@RestController
@RequestMapping("/api/file/chat")
@RequiredArgsConstructor
public class FileChatController {

    private final FileChatService fileChatService;
    @PostMapping("/create")
    public Response<Boolean> createFileChat(@RequestBody FileChatModel fileChatModel) {
        // 权限校验
        return Response.success(fileChatService.createFileChat(fileChatModel));
    }
}
